import React, { useEffect } from 'react';
import { login } from '@/api';




const OSSLogin = () => {
    useEffect(() => {
        loginSystem();
    }, [])

    const loginSystem = async () => {
        const { data } = await login();
        if (data.code === '0000' && data.data.url) {
            window.location.href = data.data.url + '&state=agentsso'
        }


    }
    return <></>
}


export default OSSLogin